package com.xyd.springcloud.service;

import com.xyd.springcloud.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "USER-PROVIDER")
public interface ISpringcloudService {

    @RequestMapping("/all")
    List<User> getAllUser();

    @RequestMapping("/login")
    User userLogin(@RequestBody User user);
}
